/*
 *  plant.h
 */

#ifndef PLANT_H
#define PLANT_H

#include "bomb.h"
#include "direction.h"
#include "object.h"

class Plant : public Object {

public:
    Plant(int objectID, int life, Direction& dir, int frequency);
    ~Plant();
    void attack();
    void makeBomb();
    void doAction();
    bool isSolid();
    bool isDestroyable();
    void destroy();
private:
    int frequency;
    int life;
    Bomb* bomb;
    Direction dir;
};

#endif //PLANT_H

//{+}


